package com.wanmait.deliverymangementsystem.service.test;

import com.wanmait.deliverymangementsystem.mapper.UserAddressMapper;
import com.wanmait.deliverymangementsystem.pojo.UserAddress;
import com.wanmait.deliverymangementsystem.pojo.Users;
import com.wanmait.deliverymangementsystem.service.UserAddressService;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;
import java.util.List;

@SpringBootTest
public class UserAdressService {
    @Resource
    private UserAddressService userAddressService;
    @Test
    public void addresTest(){
        Users users =new Users();
        users.setId(1);
        List<UserAddress> addressList =userAddressService.showUserAddress(users);
        System.out.println(addressList.toString());
    }
}
